home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
- JOIN(1L) JOIN(1L)
- NAME
- join - join lines of two files on a common field
- SYNOPSIS
- join [-a 1|2] [-v 1|2] [-e empty-string] [-o field-list...]
- [-t char] [-j[1|2] field] [-1 field] [-2 field] file1 file2
- DESCRIPTION
- This manual page documents the GNU version of join. join
- prints to the standard output a line for each pair of input
- _____ _____ lines, one each from file1 and file2, that have identical
- join fields. Either filename (but not both) can be `-',
- _____ _____ meaning the standard input. file1 and file2 should be
- already sorted in increasing order (not numerically) on the
- _ join fields; unless the -t option is given, they should be
- sorted ignoring blanks at the start of the line, as sort
- _ does when given the -b option.
- The defaults are: the join field is the first field in each
- line; fields in the input are separated by one or more
- blanks, with leading blanks on the line ignored; fields in
- the output are separated by a space; each output line con-
- _____ sists of the join field, the remaining fields from file1,
- _____ then the remaining fields from file2.
- OPTIONS
- _ ____ ______ -a file-number
- ____ Print a line for each unpairable line in file file-
- ______ number (either 1 or 2), in addition to the normal out-
- put.
- _ ______ -e string
- Replace empty output fields (those that are missing in
- ______ the input) with string.
- _ __ _____ -1, -j1 field
- _____ Join on field field (a positive integer) of file 1.
- _ __ _____ -2, -j2 field
- _____ Join on field field (a positive integer) of file 2.
- _ _____ -j field
- _ _____ _ _____ Equivalent to -1 field -2 field.
- _ _____ ____ -o field-list...
- Construct each output line according to the format in
- _____ ____ _____ ____ field-list. Each element in field-list consists of a
- file number (either 1 or 2), a period, and a field
- number (a positive integer). The elements in the list
- _____ ____ are separated by commas or blanks. Multiple field-list
- _ arguments can be given after a single -o option; the
- Page 1
- JOIN(1L) JOIN(1L)
- _ values of all lists given with -o are concatenated
- together.
- _ ____ -t char
- ____ Use character char as the input and output field
- separator.
- _ ____ ______ -v file-number
- ____ Print a line for each unpairable line in file file-
- ______ number (either 1 or 2), instead of the normal output.
- Page 2
-
-
-
-
-
-
-